import random
nums = []
while len(nums) < 6:
    num = random.randint(1,33)
    if num not in nums:
        nums.append(num)
nums.append(random.randint(1,16))
print("随机生成的双色球：")
print("红球", end=" ")
for i in nums[:6]:
    print(i, end=" ")
print("篮球：", nums[6])